/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sa_prakt1.bl.services.factory;

import sa_prakt1.bl.services.impl.ejb.EjbCommunity;
import sa_prakt1.bl.services.impl.standard.DefaultCommunity;
import sa_prakt1.bl.services.interfaces.Community;
import sa_prakt1.utils.Persistenz;

/**
 *
 * @author Andreas
 */
public class CommunityFactory {

    public CommunityFactory() {
    }

    static public Community getCommunity(Persistenz CommunityType) {
        switch (CommunityType) {
            case DEFAULT:
                return DefaultCommunity.getInstance();
            case EJB:
                return EjbCommunity.getInstance();
            default:
                return null;
        }
    }
}
